gtkstyleproperty: fix small memory leak
authorFelix Riemann <friemann@gnome.org>
Sat, 23 Jul 2011 13:50:05 +0000 (15:50 +0200)
committerFelix Riemann <friemann@gnome.org>
Sat, 23 Jul 2011 19:40:59 +0000 (21:40 +0200)
The released value is a string array and thus g_free is not sufficient.

https://bugzilla.gnome.org/show_bug.cgi?id=655173

gtk/gtkstyleproperty.c

index c44d0e72806a09c4ba1e162b2bdb453327ca1ab4..6ffb46c446a7abcd2836a6d64c7255b63f37b77e 100644 (file)
@@ -2008,7 +2008,7 @@ pack_font_description (GValue             *value,
   pango_font_description_set_variant (description, variant);
   pango_font_description_set_weight (description, weight);
 
-  g_free (families);
+  g_strfreev (families);
 
   g_value_take_boxed (value, description);
 }